package com.hou.shardingjdbc.domain.BULID;

import com.hou.shardingjdbc.domain.PO.Order;

public class OrderBuilder {

    private Order order;

    public static OrderBuilder create(){
        OrderBuilder builder = new OrderBuilder();
        builder.order=new Order();
        return builder;
    }

    public Order build(){
        return this.order;
    }

    public OrderBuilder setOrderid(Integer orderid) {
        this.order.setOrderid(orderid);
        return this;
    }

    public OrderBuilder setOpenid(String openid) {
        this.order.setOpenid(openid);
        return this;
    }

    public OrderBuilder setPrice(Float price) {
        this.order.setPrice(price);
        return this;
    }

    public OrderBuilder setSdate(String sdate) {
        this.order.setSdate(sdate);
        return this;
    }

    public OrderBuilder setEdate(String edate) {
        this.order.setEdate(edate);
        return this;
    }

}
